SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38147: Using DSD and DLMSTR= in the INFILE statement does not handle consecutive delimiters correctly

DetailsCodeOutputAboutRate It

When reading an external file into a SAS data set, the INFILE statement defines the file to be read as well as various options about how to read the file. The DSD option specifies that when data values are enclosed in quotation marks, delimiters within the value are treated as character data. The DSD option changes how SAS treats delimiters when you use LIST input and sets the default delimiter to a comma. When you specify DSD, SAS treats two consecutive delimiters as a missing value and removes quotation marks from character values. The DLMSTR option specifies a character string as an alternate delimiter (other than a blank) to be used for LIST input.

The DSD and DLMSTR options in the INFILE statement are not correctly handling consecutive delimiters.

When you use the DSD and DLMSTR= options in the INFILE statement, you would expect consecutive delimiters to create a missing value. Currently, this is not behaving as it should. If your variables are character, you will get a missing value, but the value following will contain a portion of the delimiter. If your variables are numeric, the consecutive delimiters are ignored.

Refer to SAS Note 33385, "DLMSTR= option used to specify multi-character string as a delimiter", for more information about handling multiple delimiters when reading a file.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled HP-UX9.2 TS2M09.3 TS1M0
64-bit Enabled AIX9.2 TS2M09.3 TS1M0
Windows Vista9.2 TS2M09.3 TS1M0
Windows Vista for x649.2 TS2M09.3 TS1M0
Microsoft Windows XP Professional9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2008 for x649.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 for x649.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M09.3 TS1M0
Microsoft® Windows® for x649.2 TS2M09.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M09.3 TS1M0
z/OS9.2 TS2M09.3 TS1M0
64-bit Enabled Solaris9.2 TS2M09.3 TS1M0
HP-UX IPF9.2 TS2M09.3 TS1M0
Linux9.2 TS2M09.3 TS1M0
Linux for x649.2 TS2M09.3 TS1M0
OpenVMS on HP Integrity9.2 TS2M09.3 TS1M0
Solaris for x649.2 TS2M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.